package cn.tedu.spring;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TesrProduct {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext c=new AnnotationConfigApplicationContext
        ("cn.tedu.spring.eg1");
        Product p=c.getBean(Product.class);
        System.out.println("p="+p);

    }
}
